/**
 * Created by 小敏哥 on 2018/1/5.
 */
import commonAction from "../../../../../js/actions/commonAction";
import {ADD_CAR_RULE} from "./actionsTypes";

export const addCarRule = data => ({type: ADD_CAR_RULE, data: data});//添加车辆规则

export const getAddCarRule= (data, callBack) => {
    return commonAction.simplePost(data, 'emsc-partner/b/carViola/getAddCarInfo.ajax', addCarRule, callBack);
};

export const addCar=(data,callBack) => {
    return commonAction.simplePost(data, 'emsc-partner/b/carViola/insertCar.ajax', undefined, callBack);
};
